package util;

import domain.Admin;
import domain.Jobholder;
import domain.Recruiter;

/**
 * 全局对象，用来保存当前登录对象
 */
public final class SessionUtil {
    private SessionUtil(){}

    private static Admin admin;
    private static Jobholder jobholder;
    private static Recruiter recruiter;

    public static Admin getAdmin() {
        return admin;
    }

    public static void setAdmin(Admin admin) {
        SessionUtil.admin = admin;
    }

    public static Jobholder getJobholder() {
        return jobholder;
    }

    public static void setJobholder(Jobholder jobholder) {
        SessionUtil.jobholder = jobholder;
    }

    public static Recruiter getRecruiter() {
        return recruiter;
    }

    public static void setRecruiter(Recruiter recruiter) {
        SessionUtil.recruiter = recruiter;
    }
}
